#ifndef UBUS_MESH_H
#define UBUS_MESH_H
#include "ubus_common.h"
#include "data_type.h"

enum {
        MESH_INFO,
        __MESH_INFO_MAX,
} ;
static const struct blobmsg_policy mesh_info_policy[__MESH_INFO_MAX] = {
        [MESH_INFO] = { .name = "ip", .type = BLOBMSG_TYPE_STRING },
}; 

/**
 * 获取MPPT控制器供电控制模式
 */
int ubus_whqx_mesh_info(struct ubus_context *ctx, struct ubus_object *obj, struct ubus_request_data *req, const char *method, struct blob_attr *msg);

int ubus_whqx_mesh_reboot(struct ubus_context *ctx, struct ubus_object *obj, struct ubus_request_data *req, const char *method, struct blob_attr *msg);
int ubus_whqx_mesh_reset(struct ubus_context *ctx, struct ubus_object *obj, struct ubus_request_data *req, const char *method, struct blob_attr *msg);

int ubus_yunw_mesh_status(struct ubus_context *ctx, struct ubus_object *obj, struct ubus_request_data *req, const char *method, struct blob_attr *msg);
#endif